package com.itboye.hutouben.logincontroller;



import android.app.Activity;
import android.content.Intent;
import android.util.Log;

import com.itboye.hutouben.activity.login.LoginActivity;

/**
 * @author 未登录情况下执行该方法
 */
public class UnLoginState implements ILoginState {

	// 所有未登录的统一执行Login操作
	private void doUnLogin(Activity act) {
		Intent intent = new Intent(act, LoginActivity.class);

		act.startActivity(intent);
	}

	/**
	 * 查看个人资料
     */
	@Override
	public void onPersonal(Activity activity, Object obj) {
		// TODO Auto-generated method stub
		doUnLogin(activity);
		Log.d("titleltsssssd","sbsbsb");
	}
	/**
	 * 我的钱包
	 */
	@Override
	public void onQiaoBao(Activity activity, Object obj) {
		doUnLogin(activity);
	}
	/**
	 * 我的订单
	 */
	@Override
	public void onDingDan(Activity activity, Object obj) {
		doUnLogin(activity);
	}

	/**
	 * 维修记录
     */
	@Override
	public void onWeiXiuJiLu(Activity activity, Object obj) {
		doUnLogin(activity);
	}
	/**
	 * 收货地址
	 */
	@Override
	public void onShouHuoDiZhi(Activity activity, Object obj) {
		doUnLogin(activity);
	}

	/**
	 * 系统消息
     */
	@Override
	public void onXiTongMessage(Activity activity, Object obj) {
		doUnLogin(activity);
	}
	/**
	 * 维修消息
	 */
	@Override
	public void onWeiXiuMessage(Activity activity, Object obj) {
		doUnLogin(activity);
	}
	/**
	 * 购物车
	 */
	@Override
	public void onGouWuChe(Activity activity, Object obj) {
		doUnLogin(activity);
	}
	/**
	 * 消息
	 */
	@Override
	public void onXiaoXi(Activity activity, Object obj) {
		doUnLogin(activity);
	}
	/**
	 * 签到记录
	 */
	@Override
	public void onQianDao(Activity activity, Object obj) {
		doUnLogin(activity);
	}


}
